from chernc.compiler.project.rust_project import RustCompilationContext

rust_project = RustCompilationContext()
print(rust_project.list_files(path="./"))
print(rust_project.list_files(path="./src"))
rust_project.write_file(
    "src/main.rs",
"""
fn main() {
    println("Hello, world!");
}
""")
print(rust_project.compile())
print(rust_project.run())